//
//  GestureRecognizer.h
//  NXTRemoteController
//
//  Created by naceka on 06.05.12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Robot.h"

@interface GestureView : UIView {
	CGPoint lastPoint;
	bool draw;
	CGPoint points[1000];
	int count;
}

- (GestureView *) initWithFrame:(CGRect)frame;

//touches
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

//poinrs
- (void) clear;
- (CGPoint *) getPoints;
- (int) getCount;
- (void) approximatePoint:(CGPoint *) p;
- (void) processPoint:(CGPoint *) p;

@end
